cmake_minimum_required(VERSION 3.0)

project(test_file_module)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

include_directories(./)
include_directories(./../)
include_directories(./../../)


set(test_file_handle_src_list ./test_file_handle.cpp
    ./../file_description.cpp
    ./../file_operate.cpp
    ./../file_handle.cpp
    ./../../write_read_module/buffer.cpp)

add_executable(TEST_FILE_HANDLE ${test_file_handle_src_list})

set(libs gtest gtest_main pthread)

target_link_libraries(TEST_FILE_HANDLE ${libs})